{% extends "layout.html" %}

{% block title %}Détail de l'offre fixe{% endblock %}

{% block content %}

<form method="post" class="form-horizontal">
<div class="row">
	
	 <!-- Premi�re colonne -->
	<div class="span12">
	
	  <fieldset>
		<legend>Informations sur liste pays</legend>
		<input name="id" type="hidden" value="{{offre.id}}" class="uneditable-input"/>
		
		<div class="control-group">
			<label class="control-label" for="type">Type</label>
			<div class="controls">
            {% if offre.type == "vga" %}VGA{% endif %}
            {% if offre.type == "vga/num" %}VGA numeris{% endif %}
            {% if offre.type == "voip" %}VOIP{% endif %}
            {% if offre.type == "mobile" %}Mobile{% endif %}
            <input name="type" type="hidden" value="{{offre.type}}" class="uneditable-input"/>
			</div>
		  </div>
	
	  <div class="control-group">
		<label class="control-label" for="code_article">Code article</label>
        <div class="controls">
		<div class="input-prepend">
           <input name="code_article" type="text" value="{{offre.code_article}}"/> 
		</div>
	  </div>
	  </div>
      
      <div class="control-group">
		<label class="control-label" for="nom">Nom</label>
        <div class="controls">
		<div class="input-prepend">
           <input name="nom" type="text" value="{{offre.nom}}"/> 
		</div>
	  </div>
	  </div>
      {% for pays in pays %}
		{% if offre.type != "mobile" %}
		<input type="checkbox" id="choix_pays" name="choix_pays[]" value="{{pays.id}}" {% if pays.id in tab_liste_pays %}checked{% endif %}> {{pays.destination}} <br>
		{% else %}
		<input type="checkbox" id="choix_pays" name="choix_pays[]" value="{{pays.CountryCode}}" {% if pays.CountryCode in tab_liste_pays %}checked{% endif %}> {{pays.Pays}} <br>
		{% endif %}
      {% endfor %}
      
	 
      
     
      
   
   
		<div class="form-actions">
                      
                      <button type="submit" class="btn btn-primary" name="action" value="update">Mise à jour de l'offre</button>
                      
   		<div class="btn-group">
					  <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
						Actions
						<span class="caret"></span>
					  </a>

						<ul class="dropdown-menu">
							
                            <li><a href="pays_international_fixe_mobile"><i class="icon-eye-open"></i> Afficher la liste des offres</a></li>
                         <li class="divider"></li>
							<li><a href="pays_international_fixe_mobile-creation"><i class="icon-shopping-cart"></i>Creer une nouvelle offre </a></li>
							
					  </ul>
		</div>
		</div>
	</div>
</div>   
	
</form>

{% endblock %}
	
